Fit model

Once a function is defined declaring the model, you can fit the model to the data using the fit function.

m.fit(model)  # Optimize model parameters through MCMC sampling
m$fit(model) # Optimize model parameters through MCMC sampling